import styled from 'styled-components';
import { Link } from 'react-router-dom';
import homeBg from '../../static/images/home-bg.jpg';

export const HomeWrapper = styled.div`
  width: 100%;
  font-size: 12px;
`;

export const Header = styled.header`
  width: 100%;
  height: 417px;
  background-image: url(${homeBg});
  background-color: #ccc;
  background-attachment: scroll;
  background-size: cover;
  color: #fff;
  margin-bottom: 20px;
`;

export const HeaderText = styled.div`
  width: 50%;
  height: 417px;
  margin: 0 auto;
  text-align: center;
  padding: 150px 0;
`;

export const BlogName = styled.div`
  font-size: 80px;
  font-weight: 700;
`;

export const Slogan = styled.div`
  font-size: 18px;
  font-weight: 300;
  margin-top: 10px;
`;

export const Container = styled.div`
  width: 100%;
  margin-top: 50px;
`;

export const Content = styled.div`
  width: 68%;
  margin: 0 auto;
  overflow: hidden;
`;

export const ListWrapper = styled.div`
  width: 64%;
  margin-left: 8%;
  float: left;
`;

export const ItemWrapper = styled.div`
  width: 100%;
  height: 172px;
  a {
    color: #337ab7;
    text-decoration: none;
  }
`;

export const PagesBtnWrapper = styled.div`
  margin-top: 20px;
`;

export const PagesNewerBtn = styled(Link)`
  display: block;
  background-color: #fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
  color: #404040;
  float: left;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 800;
  padding: 15px 25px;
  line-height: 1.7;
  text-transform: uppercase;
`;

export const PagesOlderBtn = styled(Link)`
  display: block;
  background-color: #fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
  color: #404040;
  float: right;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 800;
  padding: 15px 25px;
  line-height: 1.7;
  text-transform: uppercase;
`;

export const ItemTitle = styled.div`
  font-size: 26px;
  color: #404040;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 700;
`;

export const ItemSubTitle = styled.div`
  font-size: 16px;
  font-weight: 300;
  color: #404040;
  line-height: 1.3;
  margin-bottom: 10px;
`;

export const ItemContent = styled.div`
  font-size: 14px;
  color: #a3a3a3;
  font-style: italic;
  line-height: 23px;
  font-weight: 100;
`;

export const ItemDate = styled.p`
  font-size: 18px;
  font-family: Lora,'Times New Roman',serif;
  color: #ccc;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 30px;
  font-weight: normal;
`;

export const RightInfoWrapper = styled.div`
  width: 23%;
  float: right;
`;